package com.bestcem.xm.user.grpc.service.param;


import com.bestcem.xm.user.grpc.v1.enums.SortTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 排序参数
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/1/26 15:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SortParam {

    /**
     * 排序字段
     */
    private String property;

    /**
     * 是否降序
     */
    private SortTypeEnum.SortType direction;

}
